var fs = require('fs');

var path = '/test.data';
var content = 'this is amp fs test file';

/** filesystem total size */
console.log(fs.totalSize() + ' Byte');

/** write file */ 
fs.writeSync(path, content);

/** used size */
console.log(fs.usedSize() + ' Byte');

/** free size */
console.log(fs.freeSize() + ' Byte');

/** read file */
var data = fs.readSync(path);
console.log('fs read: ' + data);

/** delete file */
fs.unlinkSync(path);